package com.pinecone.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.pinecone.dao.LiveRecordDao;
import com.pinecone.entity.LiveRecordEntity;
import com.pinecone.service.LiveRecordService;



@Service("liveRecordService")
public class LiveRecordServiceImpl implements LiveRecordService {
	@Autowired
	private LiveRecordDao liveRecordDao;
	
	@Override
	public LiveRecordEntity queryObject(Integer liveRecordId){
		return liveRecordDao.queryObject(liveRecordId);
	}

    @Override
    public List<LiveRecordEntity> queryByLiveRoomId(String liveRoomId) {
        return liveRecordDao.queryByLiveRoomId(liveRoomId);
    }

    @Override
	public List<LiveRecordEntity> queryList(Map<String, Object> map){
		return liveRecordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return liveRecordDao.queryTotal(map);
	}
	
	@Override
	public void save(LiveRecordEntity liveRecord){
		liveRecordDao.save(liveRecord);
	}
	
	@Override
	public void update(LiveRecordEntity liveRecord){
		liveRecordDao.update(liveRecord);
	}
	
	@Override
	public void delete(Integer liveRecordId){
		liveRecordDao.delete(liveRecordId);
	}
	
	@Override
	public void deleteBatch(Integer[] liveRecordIds){
		liveRecordDao.deleteBatch(liveRecordIds);
	}
	
}
